package com.yingjie.yingjieauth.controller;

import com.yingjie.commonbase.commons.ReturnObject;
import com.yingjie.yingjieauth.service.GlobalConfService;
import jdk.nashorn.internal.objects.Global;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class GlobalConfController {

    @Resource
    private GlobalConfService globalConfService;
    //全局配置
    @PostMapping("/globalConf")
    public ReturnObject globalConf(){

        Global global = globalConfService.getGlobalConfInfo();
        return ReturnObject.SUCCESS(global);
    }
}
